syntax on
filetype plugin indent on

set si hlsearch is number cursorline
"set relativenumber
set shiftwidth=4 tabstop=4 softtabstop=4 expandtab "expandtab
set scrolloff=10
set showcmd
set wildmenu
"set listchars=tab:\|-,space:·,eol:\
"set encoding=utf-8
"set spell " ]s, [s, z=

let mapleader="s"
map <leader> :echo "i'm leader"<CR>
map \h :noh<CR>
map \n :set nu! nu?<CR>
map \t :set et! et?<CR>
map \l :set cul! cul?<CR>
map \p :set paste! paste?<CR>
map \c :set ignorecase! ignorecase?<CR>
map \` :set list!<CR>
map \g :!ctags -R<CR>
map \R :source $MYVIMRC<CR>
map \<space> gg=Gzz''


map <C-j> 10j
map <C-k> 10k

" C+d, C+u
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Plugin
" rainbow
let g:rainbow_active = 1 "0 if you want to enable it later via :RainbowToggle

" ColorTheme
set termguicolors
set bg=dark
"colorscheme molokai
"colorscheme gruvbox
"colorscheme darcula
"colorscheme one
colorscheme ayu

set cscopetag
set cscopeprg='gtags-cscope'
let GtagsCscope_Auto_Load = 1
let GtagsCscope_Auto_Map = 1
let GtagsCscope_Quiet = 1
let gtags_file=findfile("GTAGS", ";")
if !empty(gtags_file)
    exe "cs add" gtags_file
endif
